package com.inspinia.base.pagination;

/**
 * 分页参数
 *
 * @author veblen
 */
public class PageBound {

    private int offset;
    private int limit;

    public PageBound(int pageNo, int pageSize) {
        this.offset = (pageNo - 1) * pageSize;
        this.limit = this.offset + pageSize;
    }

    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }


}
